import request from '@/utils/request'

export function loginAPI(data) {
  return request({
    url: '/entrust/Login/login',
    method: 'post',
    data
  })
}
// 退出
export function logout(params) {
  return request({
    url: '/entrust/Login/logOut',
    method: 'get',
    params
  })
}
export function phoneLogin(data) {
  return request({
    url: '/entrust/login/phoneLogin',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/entrust/user/userInfo',
    method: 'get',
  })
}

//获取验证码
export function getCode(params) {
  return request({
    url: '/entrust/common/getCode',
    method: 'get',
    params
  })
}

// 地区接口
export function areaTree(params) {
  return request({
    url: '/entrust/Common/areaTree',
    method: 'get',
    params
  })
}